﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharp.Libs.WPF;
using System.Windows.Input;


namespace SQLCreateStatement2Code
{
    class MainWindowViewModel
    {
        #region declarations
        private RelayCommand _rcGenerateCode = null;

        private String _strInput = "";
        private String _strOutput = "";
        #endregion
        


        #region constructor / finalizer
        #endregion
        
        
        
        #region event handling
        #endregion
        
        
        
        #region private functions
        private void _GenerateCode()
        {
        }
        #endregion
        
        
        
        #region interface
        #region properties
        public ICommand GenerateCode
        {
            get
            {
                if (_rcGenerateCode == null)
                {
                    _rcGenerateCode = new RelayCommand(
                        param => this._GenerateCode(),
                        param => this.CanGenerateCode);
                }
                return _rcGenerateCode;
            }
        }
        public Boolean CanGenerateCode
        {
            get
            {
                return _strInput.Trim() != "";
            }
        }

        public String Input
        {
            get
            {
                return _strInput;
            }
            set
            {
                _strInput = value;
            }
        }

        public String Output
        {
            get
            {
                return _strOutput;
            }
            set
            {
                _strOutput = value;
            }
        }
        #endregion

        #region methods
        #endregion
        #endregion
    }
}
